import { CourseInput } from '@/modules/course/dto/course.input';
import { OrganizationInput } from '@/modules/organization/dto/organization.input';
import { Field, InputType } from '@nestjs/graphql';

@InputType()
export class ScheduleInput {
  @Field({
    description: '上课日期',
  })
  schoolDay: Date;

  @Field({
    description: '开始时间',
  })
  startTime: Date;

  @Field({
    description: '结束时间',
  })
  endTime: Date;

  @Field({
    description: '人数限制',
  })
  limitNumber: number;

  @Field(() => CourseInput, {
    nullable: true,
    description: '关联课程',
  })
  course: CourseInput;

  @Field(() => OrganizationInput, {
    nullable: true,
    description: '关联门店',
  })
  org: OrganizationInput;
}
